import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Hello from '@/components/Hello'
import EchartTest from '@/components/EchartTest'
import myTable from '@/components/myTable'
import Upload from '@/components/Upload'
import Performance from '@/components/Performance'
import HomeWork from '@/components/HomeWork'
import Test from '@/components/Test'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'HelloWorld',
            component: HelloWorld
        },
        {
            path: '/hello',
            name: 'Hello',
            component: Hello
        },
        {
            path: '/ech',
            name: 'EchartTest',
            component: EchartTest
        },
        {
            path: '/myTable',
            name: 'myTable',
            component: myTable
        },
        {
            path: '/upload',
            name: 'Upload',
            component: Upload
        },
        {
            path: '/performance',
            name: 'Performance',
            component: Performance
        },
        {
            path: '/homework',
            name: 'HomeWork',
            component: HomeWork
        },
        {
            path: '/test',
            name: 'Test',
            component: Test
        }
    ]
})